<template>
    <div>
        <el-form>
            <el-form-item>
  <el-button @click="LoadInfoBox()">查询</el-button>
            </el-form-item>
            </el-form>
        <div class="row">
            <div class="col-md-3 col-sm-6 col-xs-12">
                <div class="info-box animated bounceInRight">
                    <span class="info-box-icon" style="background-color: #00a65a">
                        <img src="~@/assets/img/Electricity_White.png" style="height: 50%; margin-top: 20%;"></span>
                    <div class="info-box-content">
                        <span class="info-box-text" data-language="info-Electricity">Electricity</span>
                        <span class="info-box-number" id="electricity"><small></small></span>
                    </div>
                    <!-- /.info-box-content -->
                </div>
                <!-- /.info-box -->
            </div>
            <!-- /.col -->
            <div class="col-md-3 col-sm-6 col-xs-12">
                <div class="info-box animated bounceInRight">
                    <span class="info-box-icon" style="background-color: #f39c12">
                        <img src="~@/assets/img/Chiller_White.png" style="height: 50%; margin-top: 20%;"></span>

                    <div class="info-box-content">
                        <span class="info-box-text">chiller</span>
                        <span class="info-box-number" id="chillerCost"><small></small></span>
                    </div>
                    <!-- /.info-box-content -->
                </div>
                <!-- /.info-box -->
            </div>
            <!-- /.col -->
            <!-- fix for small devices only -->
            <div class="clearfix visible-sm-block"></div>

            <div class="col-md-3 col-sm-6 col-xs-12">
                <div class="info-box animated bounceInRight">
                    <span class="info-box-icon" style="background-color: #dd4b39">
                        <img src="~@/assets/img/Steam_White.png" style="height: 50%; margin-top: 20%;"></span>

                    <div class="info-box-content">
                        <span class="info-box-text" data-language="info-Steam">Steam</span>
                        <span class="info-box-number" id="steam"><small></small></span>
                    </div>
                    <!-- /.info-box-content -->
                </div>
                <!-- /.info-box -->
            </div>
            <!-- /.col -->
            <div class="col-md-3 col-sm-6 col-xs-12">
                <div class="info-box animated bounceInRight">
                    <span class="info-box-icon" style="background-color: #00c0ef">
                        <img src="~@/assets/img/Water_White.png" style="height: 50%; margin-top: 20%;"></span>

                    <div class="info-box-content">
                        <span class="info-box-text" data-language="info-Water">Water</span>
                        <span class="info-box-number" id="water"><small></small></span>
                    </div>
                    <!-- /.info-box-content -->
                </div>
                <!-- /.info-box -->
            </div>
            <!-- /.col -->
        </div>
    </div>
</template>
<script>
export default {
    methods: {
        LoadInfoBox () {
            LoadInfoBox2()
        }
        }
        }
function LoadInfoBox2 () {
document.getElementById('electricity').innerText = '10 KWH'
document.getElementById('chillerCost').innerText = '20 KWH'
document.getElementById('steam').innerText = '30 T'
document.getElementById('water').innerText = '40 M3'
}
</script>
<style lang="less">
.info-box {
  display: block;
  min-height: 90px;
  background: #fff;
  width: 100%;
  margin-bottom: 15px;
  small {
    font-size: 14px;
  }
}

.info-box-icon {
  display: block;
  float: left;
  height: 90px;
  width: 90px;
  text-align: center;
  font-size: 45px;
  line-height: 90px;
  background: rgba(0, 0, 0, 0.2);
  > img {
    max-width: 100%;
  }
}

.info-box-content {
  padding: 5px 10px;
  margin-left: 90px;
}

.info-box-number {
  display: block;
  font-weight: bold;
  font-size: 18px;
}

.progress-description,
.info-box-text {
  display: block;
  font-size: 14px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.info-box-text {
  text-transform: uppercase;
}

.info-box-more {
  display: block;
}

.progress-description {
  margin: 0;
}
</style>
